//
//  CTVMenuElement.h
//  Channltv
//
//  Created by Bruno Keymolen on 7/5/07.
//  Copyright 2007 channl.tv. All rights reserved.
//
// DEPRECATED

#import <Cocoa/Cocoa.h>
#import "CTVClip.h"
#import "CTVChannel.h"

typedef enum CTVMenuElementType{
	CTVMenuElementType_DEFAULT = 0,
	CTVMenuElementType_SYNC,
	CTVMenuElementType_CLIP,
	CTVMenuElementType_CHANNEL
}CTVMenuElementType;

@interface CTVMenuElement : NSObject {
@private 
	CTVMenuElementType m_type;
	BRTexture* m_rightIcon;
	BRTexture* m_leftIcon;
@public
	SEL m_func;
	NSString* m_name;
	NSString* m_subname;
	NSString* m_iconname;
	id m_submenu;	
	CTVClip* m_program; /* menu item is a program */
	CTVChannel* m_channel; /* menu item is a channel */
	
}

-(id) initWithName:(NSString*)name;
-(id) initWithName:(NSString*)name andFunction:(SEL)func;
-(id) initWithName:(NSString*)name andFunction:(SEL)func andSubMenu:(id)submenu;
-(id) initWithName:(NSString*)name andFunction:(SEL)func andSubMenu:(id)submenu andIcon:(NSString*)iconname;
-(int) setProgram:(CTVClip*)prog;


-(void)setType:(CTVMenuElementType)type;
-(CTVMenuElementType)type;
-(void)setLeftIcon:(BRTexture*)icon;
-(BRTexture*)leftIcon;
-(void)setRightIcon:(BRTexture*)icon;
-(BRTexture*)rightIcon;
-(NSString*)name;

-(void) setClip:(CTVClip*)clip;
-(CTVClip*)clip;

-(void) setChannel:(CTVChannel*)channel;
-(CTVChannel*)channel;

-(void) setFunc:(SEL)func;
-(SEL)func;

-(void) setSubmenu:(id)submenu;
-(id)submenu;

-(void) setSubname:(id)subname;
-(id)subname;

-(void)setIconName:(NSString*)iconname;
-(NSString*)iconname;


@end
